package com.xltt.vehicleControl.bean;

import java.io.Serializable;

/**
 * AUTHOR: bingxiang.tang
 * DATE:  2021/1/7.
 * EMAIL: bingxiang.tang@ecarx.com
 * 请求结果的base类型，
 * 所有返回的数据结果都基于此进行适配和更改
 */
public  class BaseResponse implements Serializable {

    private static final int INVALID_CODE1 = 30007;
    private static final int INVALID_CODE2 = 30008;

    public int code;

    public BaseResponse() {
    }

//    public abstract boolean isTokenUnavailable();
//
    protected boolean isInvalidCode(int code) {
        return code == 30007 || code == 30008;
    }

    public int getCode() {
        return code;
    }

}
